package com.qssoft.cqry.synchdb.handler.server;

import com.qssoft.cqry.synchdb.adapter.SynchDbAdapter;
import com.qssoft.cqry.synchdb.vo.MysqlBinlogVo;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @author liju.z
 */

public class ServerSynchDbHandler implements SynchDbAdapter {


    @Override
    public boolean handler(JdbcTemplate jdbcTemplate, MysqlBinlogVo synchData) {
        return jdbcTemplate.update(synchData.getQueryEventData().getSql()) != 0;
    }
}
